home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 24
/
AMIGAplus Sonderheft 24 (2000)(Falke)(DE)[!].iso
/
c
/
lhaTOlzx
< prev
next >
Wrap
AmigaDOS Script File
|
1999-11-06
|
780b
|
48 lines
.key LHAARCHIVE/A,LZXARCHIVE/A,TEMPDIR/A
.bra {
.ket }
; $VER: "It became lzx" version 1.0 by Jarmo Laakkonen
set tempdir {TEMPDIR}
makedir $tempdir
if warn
echo "Couldn't create directory $tempdir"
quit 5
endif
assign back: ""
lha -M x {LHAARCHIVE} $tempdir/
if warn
echo "Couldn't unpack {LHAARCHIVE}
cd $tempdir
delete #? all quiet
cd back:
assign back: remove
quit 5
endif
cd $tempdir
lzx a -r back:{LZXARCHIVE} #?
cd back:
delete $tempdir all quiet
;delete #? all quiet
cd back:
assign back: remove
echo "Testing archive {LZXARCHIVE}"
lzx t {LZXARCHIVE}
if warn
echo "Problems with archive {LZXARCHIVE}"
echo "Deleting corrupt data"
else
echo "All Done"
ask "*NDo you want to keep {LHAARCHIVE}? (y/N)"
if warn
echo "Ready"
else
delete {LHAARCHIVE}
endif
unset $tempdir